package com.itheima.mybytestream2;

import java.io.FileReader;
import java.io.IOException;

public class ByteStreamDemo2 {
    //字符流的读入
    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader("b.txt");
        int ch;

        while((ch=fr.read())!=-1){
            System.out.print((char)ch);
        }

        fr.close();

    }
}
